<template>
  <div class="cell" @click="clickFn">
      <div class="left">
          {{title}}
      </div>
      <div class="right">{{value}}
          <i class="iconfont iconjiantou1"></i>
      </div>
  </div>
</template>

<script>
export default {
   props: {
       title:String,
       value:String,
       to:String,
   },
   methods: {
       clickFn(e) {
           if(this.to){
               
               this.$router.push({path:this.to})
           }
        //    console.log("你点击子组件")
        //    console.log("click",e)
        this.$emit("click",e)
       }
   }
}
</script>
<style lang="less" scoped>
.cell{
    height:50px;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin:0 10px;
    .right{
        color: #666;
        font-size:13px;
    }
}
</style>